package com.zkthink.ceres.applet.pcVehicles.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**

@Author cmz
@Date 2024-05-06 9:16
*/
/**
    * 车辆申请表
    */
@Data
@TableName(value = "pc_vehicles")
public class PcVehicles {
    /**
     * 车辆id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 真实姓名
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 身份证号
     */
    @TableField(value = "id_card")
    private String idCard;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 车牌号
     */
    @TableField(value = "license_plate")
    private String licensePlate;

    /**
     * 车辆品牌
     */
    @TableField(value = "brand")
    private String brand;

    /**
     * 车辆型号
     */
    @TableField(value = "model")
    private String model;

    /**
     * 车辆颜色
     */
    @TableField(value = "color")
    private String color;

    /**
     * 车辆照片
     */
    @TableField(value = "vehicle_photo")
    private String vehiclePhoto;

    /**
     * 车架号照片
     */
    @TableField(value = "vin_photo")
    private String vinPhoto;

    /**
     * 行驶证照片
     */
    @TableField(value = "registration_photo")
    private String registrationPhoto;

    /**
     * 0=审核中 1=申请通过 2=申请失败
     */
    @TableField(value = "apply_type")
    private Integer applyType;

    /**
     * 审核人
     */
    @TableField(value = "apply_user")
    private Long applyUser;

    /**
     * 审核失败原因
     */
    @TableField(value = "reason")
    private String reason;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private Long createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    private Long updateUser;

    /**
     * 逻辑删除 1-删除 0-未删除
     */
    @TableField(value = "is_delete")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    /**
     * 车辆状态:0:休息,1上班
     */
    @TableField(value = "vehicles_state")
    private Integer vehiclesState;

    /**
     * 经度
     */
    @TableField(value = "longitude")
    private String longitude;

    /**
     * 纬度
     */
    @TableField(value = "latitude")
    private String latitude;

    /**
     * 服务半径(单位:KM)
     */
    @TableField(value = "service_radius")
    private Integer serviceRadius;

    /**
     * 是否开启服务区域?(0:是/1:否)
     */
    @TableField(value = "is_open_radius")
    private Integer isOpenRadius;

    @ApiModelProperty(value = "抽成比例")
    @TableField(value = "commission")
    private Double commission;

    /**
     * 身份证照片( ,拼接正反面)
     */
    @TableField(value = "id_imgs")
    private String idImgs;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_REAL_NAME = "real_name";

    public static final String COL_ID_CARD = "id_card";

    public static final String COL_PHONE = "phone";

    public static final String COL_LICENSE_PLATE = "license_plate";

    public static final String COL_BRAND = "brand";

    public static final String COL_MODEL = "model";

    public static final String COL_COLOR = "color";

    public static final String COL_VEHICLE_PHOTO = "vehicle_photo";

    public static final String COL_VIN_PHOTO = "vin_photo";

    public static final String COL_REGISTRATION_PHOTO = "registration_photo";

    public static final String COL_APPLY_TYPE = "apply_type";

    public static final String COL_APPLY_USER = "apply_user";

    public static final String COL_REASON = "reason";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_VEHICLES_STATE = "vehicles_state";

    public static final String COL_LONGITUDE = "longitude";

    public static final String COL_LATITUDE = "latitude";

    public static final String COL_SERVICE_RADIUS = "service_radius";
}